package com.iphanta.community.tags.traffic;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 4/20/22 11:21 AM
 */
@Data
@ToString
public class AddTagItemRequest {

    @NotBlank(message = "name不能为空")
    private String name;

    @NotBlank(message = "code不能为空")
    private String code;

    private String desc;

    @NotNull(message = "type不能为空")
    private Integer type;

    private String parentCode;

    @NotBlank(message = "dimensionCode不能为空")
    private String dimensionCode;

    @NotNull(message = "visible不能为空")
    private Integer visible;

    @NotNull(message = "sort不能为空")
    private Integer sort;

}
